<?php
    include './base.php';
    $id = $_GET["id"];
    $sql = "select * from orders where roomid = $id";
    $res = mysql_query($sql);
    $row = mysql_fetch_assoc($res);
    print_r(json_encode($row));
?>